const storage = {
    set(key,val) {
        sessionStorage.setItem(key,JSON.stringify(val))
    },
    get(key,val) {
        return JSON.parse(sessionStorage.getItem(key,val))
    },
    remove(key) {
        sessionStorage.removeItem(key)
    }
}

export default storage;